package com.ccms.util.email;

import javax.mail.PasswordAuthentication; 
class MyAuthenticator extends javax.mail.Authenticator { 
	private String strUser; 
	private String strPwd; 
	
	public MyAuthenticator(String user, String password) { 
		this.strUser = user; 
		this.strPwd = password; 
	} 

	protected PasswordAuthentication getPasswordAuthentication() { 
		return new PasswordAuthentication(strUser, strPwd); 
	} 
} 
